import java.util.Scanner;

public class Diamond {
    public static void main(String[] args) {
        int num =10;
        //思路就是将一个菱形拆成两个三角形。
        for (int i = 0; i < num/2+1; i++) {
            for (int j = num/2+1; j > i; j--) {
                System.out.print(" ");
            }

            for (int j = 0; j < i * 2 + 1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
        for (int i = num/2+1; i >= 0 ; i--) {
            for (int j = num/2+1; j > i; j--) {
                System.out.print(" ");
            }

            for (int j = 0; j < i * 2 + 1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }

    }
}
